package com.oceansoft.core.jxkh.service.impl;

import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.jxkh.dao.IKhmcDao;
import com.oceansoft.core.jxkh.domain.Khmc;
import com.oceansoft.core.jxkh.service.IKhmcService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;

/**
 * Created by OS on 2017/12/14.
 */

@Service
public class KhmcServiceImpl implements IKhmcService {

    @Resource
    private IKhmcDao khmcDao;

    @Override
    public Pagination findAllkhmc(HashMap<String, String> map) {
        return khmcDao.findAllkhmc(map);
    }

    @Override
    public void editKhmcInfo(Khmc khmc) {
        khmcDao.editKhmcInfo(khmc);
    }

    @Override
    public Khmc findKhmcInfoByDbid(int dbid) {
        return khmcDao.findKhmcInfoByDbid(dbid);
    }

    @Override
    public void deleteKhmcInfoByDbid(int dbid) {
        khmcDao.deleteKhmcInfoByDbid(dbid);
    }

    @Override
    public void addKhmcInfo(Khmc khmc) {
        khmcDao.addKhmcInfo(khmc);
    }

    @Override
    public void batchDeleteKhmcInfo(int[] dbids) {
        khmcDao.batchDeleteKhmcInfo(dbids);
    }
}
